package com.jianggy.abstractfactory;

/**
 * @author jianggy
 * @time 2018年9月10日 下午10:47:59
 * @description
 */
public class App {

	/**
	* @param args
	*/
	public static void main(String[] args) {
		//经典主题
		TopicFactory classicFactory = new ClassicFactory();
		classicFactory.createButton().display();;
		classicFactory.createBackgroud().display();;
		
		//现代主题
		TopicFactory modernFactory = new ModernFactory();
		modernFactory.createButton().display();
		modernFactory.createBackgroud().display();
		

	}

}
